package com.hlf.modules.api.mapper;

import com.hlf.modules.api.entity.Print;
import com.hlf.modules.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PrintMapper extends BaseMapper<Print> {
    int deleteByPrimaryKey(Long id);

    int insert(Print record);

    int insertSelective(Print record);

    Print selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Print record);

    int updateByPrimaryKey(Print record);

    /**
     * 根据门店id查打印机列表
     * @param storeId
     * @return
     */
    List<Print> selectListByStoreId(@Param("storeId") Long storeId,@Param("userId") Long userId);

    /**
     * 查询打印机绑定数
     * @param machineNum
     * @return
     */
    int selectCountByMachineNum(String machineNum);

}